import { ApiProperty } from '@nestjs/swagger';
import { BaseDto } from './base.dto';

export class ResultDto extends BaseDto {
  @ApiProperty({
    example: '',
    description: 'RequestId(UUID)',
    required: false,
    type: String,
  })
  RequestId: string;

  @ApiProperty({
    example: '',
    description: '发送的文本',
    required: true,
    type: String,
  })
  Prompt: string;

  @ApiProperty({
    example: '6ed79f1254914016860a4734cd580fdc',
    description: '应用的APPID',
    required: false,
    type: String,
  })
  AppId: string;

  @ApiProperty({
    example: false,
    description: '是否流的方式获取结果',
    required: false,
    type: Boolean,
  })
  Stream: boolean;

  @ApiProperty({
    example: `${ Date.now() }`,
    description: '上下文ID',
    required: true,
    type: String,
  })
  sessionId: string;
}
